home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / mail / mailx6 / _setup.1 / OCXSESSI.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-04-11  |  5.7 KB  |  203 lines

  1. VERSION 4.00
  2. Begin VB.Form SessionForm 
  3.    Caption         =   "Mail X Session Form"
  4.    ClientHeight    =   3075
  5.    ClientLeft      =   1485
  6.    ClientTop       =   2115
  7.    ClientWidth     =   6390
  8.    BeginProperty Font 
  9.       name            =   "MS Sans Serif"
  10.       charset         =   0
  11.       weight          =   700
  12.       size            =   8.25
  13.       underline       =   0   'False
  14.       italic          =   0   'False
  15.       strikethrough   =   0   'False
  16.    EndProperty
  17.    Height          =   3450
  18.    Left            =   1440
  19.    LinkTopic       =   "Form2"
  20.    ScaleHeight     =   3075
  21.    ScaleWidth      =   6390
  22.    Top             =   1785
  23.    Width           =   6480
  24.    Begin VB.CommandButton Command3 
  25.       Caption         =   "Delete Recipient"
  26.       Height          =   375
  27.       Left            =   4320
  28.       TabIndex        =   10
  29.       Top             =   2520
  30.       Width           =   1815
  31.    End
  32.    Begin VB.CommandButton Command2 
  33.       Caption         =   "Fetch Next"
  34.       Height          =   375
  35.       Left            =   2160
  36.       TabIndex        =   9
  37.       Top             =   2520
  38.       Width           =   2055
  39.    End
  40.    Begin VB.CommandButton Command1 
  41.       Caption         =   "Fetch First"
  42.       Height          =   375
  43.       Left            =   240
  44.       TabIndex        =   8
  45.       Top             =   2520
  46.       Width           =   1695
  47.    End
  48.    Begin VB.CommandButton BtnAddressDialog 
  49.       Caption         =   "Address Dialog"
  50.       Height          =   375
  51.       Left            =   4320
  52.       TabIndex        =   4
  53.       Top             =   1920
  54.       Width           =   1815
  55.    End
  56.    Begin VB.CommandButton BtnAdd 
  57.       Caption         =   "Add Resolved Names"
  58.       Height          =   375
  59.       Left            =   2160
  60.       TabIndex        =   3
  61.       Top             =   1920
  62.       Width           =   2055
  63.    End
  64.    Begin VB.CommandButton BtnResolve 
  65.       Caption         =   "ResolveNames"
  66.       Height          =   375
  67.       Left            =   240
  68.       TabIndex        =   2
  69.       Top             =   1920
  70.       Width           =   1695
  71.    End
  72.    Begin VB.TextBox szResolveText 
  73.       Height          =   330
  74.       Left            =   2220
  75.       TabIndex        =   1
  76.       Top             =   660
  77.       Width           =   3930
  78.    End
  79.    Begin Mailx16Lib.MReci MReci1 
  80.       Left            =   4920
  81.       Top             =   1200
  82.       _Version        =   65541
  83.       _ExtentX        =   900
  84.       _ExtentY        =   900
  85.       _StockProps     =   0
  86.       AddressCaption  =   "Mail X Address Caption "
  87.       BindString      =   "MMsg1"
  88.       FetchType       =   1
  89.    End
  90.    Begin Mailx16Lib.MMsg MMsg1 
  91.       Left            =   3000
  92.       Top             =   1200
  93.       _Version        =   65541
  94.       _ExtentX        =   900
  95.       _ExtentY        =   900
  96.       _StockProps     =   0
  97.       SortMsg         =   0   'False
  98.       MarkAsRead      =   0   'False
  99.       DisplaySendDialog=   0   'False
  100.       BindString      =   "MSess1"
  101.    End
  102.    Begin Mailx16Lib.MSess MSess1 
  103.       Left            =   5520
  104.       Top             =   0
  105.       _Version        =   65541
  106.       _ExtentX        =   900
  107.       _ExtentY        =   900
  108.       _StockProps     =   0
  109.    End
  110.    Begin Mailx16Lib.MForm MForm2 
  111.       Left            =   120
  112.       Top             =   120
  113.       _Version        =   65541
  114.       _ExtentX        =   3598
  115.       _ExtentY        =   500
  116.       _StockProps     =   0
  117.       MXFormName      =   "FormTag1"
  118.    End
  119.    Begin VB.Label nCount 
  120.       Height          =   315
  121.       Left            =   1995
  122.       TabIndex        =   7
  123.       Top             =   1260
  124.       Width           =   795
  125.    End
  126.    Begin VB.Label Label3 
  127.       Caption         =   "Recipient Count:"
  128.       Height          =   300
  129.       Left            =   180
  130.       TabIndex        =   6
  131.       Top             =   1260
  132.       Width           =   1665
  133.    End
  134.    Begin VB.Label Label2 
  135.       Caption         =   "(Introduce a List: Name1;Name2; etc)"
  136.       Height          =   285
  137.       Left            =   2205
  138.       TabIndex        =   5
  139.       Top             =   285
  140.       Width           =   3420
  141.    End
  142.    Begin VB.Label Label1 
  143.       Caption         =   "Address To Resolve:"
  144.       Height          =   285
  145.       Left            =   150
  146.       TabIndex        =   0
  147.       Top             =   690
  148.       Width           =   1995
  149.    End
  150. Attribute VB_Name = "SessionForm"
  151. Attribute VB_Creatable = False
  152. Attribute VB_Exposed = False
  153. Private Sub BtnAdd_Click()
  154.     MReci1.Action = ACTION_ADDRECIPIENT
  155.     UpdateCount
  156.     UpdateText
  157. End Sub
  158. Private Sub BtnAddressDialog_Click()
  159.     MReci1.Action = ACTION_ADDRESS
  160.     UpdateCount
  161.     UpdateText
  162. End Sub
  163. Private Sub BtnResolve_Click()
  164.     MReci1.ResolveName = szResolveText
  165.     szResolveText = MReci1.ResolveName
  166. End Sub
  167. Private Sub Command1_Click()
  168.     If MReci1.RecipientCount > 0 Then
  169.         MReci1.RecipientNum = 1
  170.         UpdateText
  171.     Else
  172.         MsgBox "Mail X Recipient Control is Empty"
  173.     End If
  174. End Sub
  175. Private Sub Command2_Click()
  176.     NextR = MReci1.RecipientNum + 1
  177.     If NextR <= MReci1.RecipientCount Then
  178.         MReci1.RecipientNum = NextR
  179.         UpdateText
  180.     Else
  181.         MsgBox "Last Recipient Reached"
  182.     End If
  183. End Sub
  184. Private Sub Command3_Click()
  185.     MReci1.Action = ACTION_DEL_RECIPIENT
  186.     UpdateCount
  187.     UpdateText
  188. End Sub
  189. Private Sub Form_Load()
  190.     Load SystemX
  191.     SystemX.MsMail = False
  192.     SystemX.Show 1
  193.     MSess1.Logon = True
  194.     If MSess1.Logon = False Then End
  195.     UpdateCount
  196. End Sub
  197. Private Sub UpdateCount()
  198.     nCount = MReci1.RecipientCount
  199. End Sub
  200. Private Sub UpdateText()
  201.     szResolveText = MReci1.RecipientName
  202. End Sub
  203.